aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_media_post[True].yaml')
-rw-r--r--tests/cassettes/test_media_post[True].yaml58
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/cassettes/test_media_post[True].yaml b/tests/cassettes/test_media_post[True].yaml
index ee3d273..5ca1c3c 100644
--- a/tests/cassettes/test_media_post[True].yaml
+++ b/tests/cassettes/test_media_post[True].yaml
@@ -1,13 +1,13 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: !!binary | 3 body: !!binary |
4 LS04YjRjNDA5NTA5Mzc0ZjY5OTI4MmEzZWY0YTI2OGEwNg0KQ29udGVudC1EaXNwb3NpdGlvbjog 4 LS1lMjk1NTM5YzY5ODA0NWI0OGFjMDA1ZTdhYzdjNjY5NQ0KQ29udGVudC1EaXNwb3NpdGlvbjog
5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u 5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u
6 eSB3YWxrDQotLThiNGM0MDk1MDkzNzRmNjk5MjgyYTNlZjRhMjY4YTA2DQpDb250ZW50LURpc3Bv 6 eSB3YWxrDQotLWUyOTU1MzljNjk4MDQ1YjQ4YWMwMDVlN2FjN2M2Njk1DQpDb250ZW50LURpc3Bv
7 c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS04YjRjNDA5NTA5 7 c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1lMjk1NTM5YzY5
8 Mzc0ZjY5OTI4MmEzZWY0YTI2OGEwNg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu 8 ODA0NWI0OGFjMDA1ZTdhYzdjNjY5NQ0KQ29udGVudC1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y4yeMVK1gxmQdXd 944 xI3z2z4pUqBThcwcsc4UXstVlEmsVXbalSoGgoogq5yuaZMDExl+KVKgU7bGJy4yeMVK1gxmQdXd
945 c/ilSoLllt3LczAm+7tTQCMBJMt87L1pUqCM8LliP2KYJMiPKsZOMGf1pUqBjT3G6OOjnm7O9KlS 945 c/ilSoLllt3LczAm+7tTQCMBJMt87L1pUqCM8LliP2KYJMiPKsZOMGf1pUqBjT3G6OOjnm7O9KlS
946 oP/ZDQotLThiNGM0MDk1MDkzNzRmNjk5MjgyYTNlZjRhMjY4YTA2LS0NCg== 946 oP/ZDQotLWUyOTU1MzljNjk4MDQ1YjQ4YWMwMDVlN2FjN2M2Njk1LS0NCg==
947 headers: 947 headers:
948 Accept: ['*/*'] 948 Accept: ['*/*']
949 Accept-Encoding: ['gzip, deflate'] 949 Accept-Encoding: ['gzip, deflate']
950 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 950 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
951 Connection: [keep-alive] 951 Connection: [keep-alive]
952 Content-Length: ['53737'] 952 Content-Length: ['53737']
953 Content-Type: [multipart/form-data; boundary=8b4c409509374f699282a3ef4a268a06] 953 Content-Type: [multipart/form-data; boundary=e295539c698045b48ac005e7ac7c6695]
954 User-Agent: [python-requests/2.9.1] 954 User-Agent: [python-requests/2.18.4]
955 method: POST 955 method: POST
956 uri: http://localhost:3000/api/v1/media 956 uri: http://localhost:3000/api/v1/media
957 response: 957 response:
958 body: {string: '{"id":"2","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/002/original/df43bb5e8c39a766.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/002/small/df43bb5e8c39a766.jpg","remote_url":null,"text_url":"http://localhost:3000/media/Mo_xlrGjDMgwlOc3Uq8","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 958 body: {string: '{"id":"6","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/006/original/6219d51df3705738.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/006/small/6219d51df3705738.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Ngocs7E_z8h0_3sSdGI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
959 Lennon doing a funny walk"}'} 959 Lennon doing a funny walk"}'}
960 headers: 960 headers:
961 Cache-Control: ['max-age=0, private, must-revalidate'] 961 Cache-Control: ['max-age=0, private, must-revalidate']
962 Content-Type: [application/json; charset=utf-8] 962 Content-Type: [application/json; charset=utf-8]
963 ETag: [W/"369a6fee9e01ccf86536cf2f31c90edc"] 963 ETag: [W/"08aa07402d97f8ca239a3cfc4f4285be"]
964 Referrer-Policy: [strict-origin-when-cross-origin] 964 Referrer-Policy: [strict-origin-when-cross-origin]
965 Transfer-Encoding: [chunked] 965 Transfer-Encoding: [chunked]
966 Vary: ['Accept-Encoding, Origin'] 966 Vary: ['Accept-Encoding, Origin']
@@ -968,13 +968,13 @@ interactions:
968 X-Download-Options: [noopen] 968 X-Download-Options: [noopen]
969 X-Frame-Options: [SAMEORIGIN] 969 X-Frame-Options: [SAMEORIGIN]
970 X-Permitted-Cross-Domain-Policies: [none] 970 X-Permitted-Cross-Domain-Policies: [none]
971 X-Request-Id: [87cc2280-1cf3-49f9-8e36-c0f5cc1fc40f] 971 X-Request-Id: [b23b6d20-97f1-4a69-a5ee-b82d9256e64e]
972 X-Runtime: ['0.450433'] 972 X-Runtime: ['0.610298']
973 X-XSS-Protection: [1; mode=block] 973 X-XSS-Protection: [1; mode=block]
974 content-length: ['531'] 974 content-length: ['533']
975 status: {code: 200, message: OK} 975 status: {code: 200, message: OK}
976- request: 976- request:
977 body: sensitive=True&status=LOL+check+this+out&media_ids%5B%5D=2 977 body: sensitive=True&status=LOL+check+this+out&media_ids%5B%5D=6
978 headers: 978 headers:
979 Accept: ['*/*'] 979 Accept: ['*/*']
980 Accept-Encoding: ['gzip, deflate'] 980 Accept-Encoding: ['gzip, deflate']
@@ -982,20 +982,20 @@ interactions:
982 Connection: [keep-alive] 982 Connection: [keep-alive]
983 Content-Length: ['58'] 983 Content-Length: ['58']
984 Content-Type: [application/x-www-form-urlencoded] 984 Content-Type: [application/x-www-form-urlencoded]
985 User-Agent: [python-requests/2.9.1] 985 User-Agent: [python-requests/2.18.4]
986 method: POST 986 method: POST
987 uri: http://localhost:3000/api/v1/statuses 987 uri: http://localhost:3000/api/v1/statuses
988 response: 988 response:
989 body: {string: '{"id":"100154006056668334","created_at":"2018-06-05T20:00:52.232Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154006056668334","content":"\u003cp\u003eLOL 989 body: {string: '{"id":"100369507414792882","created_at":"2018-07-13T21:25:42.095Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100369507414792882","content":"\u003cp\u003eLOL
990 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154006056668334","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 990 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100369507414792882","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
991 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 991 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
992 Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI 992 Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI
993 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":4,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"2","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/002/original/df43bb5e8c39a766.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/002/small/df43bb5e8c39a766.jpg","remote_url":null,"text_url":"http://localhost:3000/media/Mo_xlrGjDMgwlOc3Uq8","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 993 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":34,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"6","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/006/original/6219d51df3705738.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/006/small/6219d51df3705738.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Ngocs7E_z8h0_3sSdGI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
994 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} 994 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'}
995 headers: 995 headers:
996 Cache-Control: ['max-age=0, private, must-revalidate'] 996 Cache-Control: ['max-age=0, private, must-revalidate']
997 Content-Type: [application/json; charset=utf-8] 997 Content-Type: [application/json; charset=utf-8]
998 ETag: [W/"02983033d7a365ef089710ec09275ed5"] 998 ETag: [W/"93110dea376a435bae5e6874c061619f"]
999 Referrer-Policy: [strict-origin-when-cross-origin] 999 Referrer-Policy: [strict-origin-when-cross-origin]
1000 Transfer-Encoding: [chunked] 1000 Transfer-Encoding: [chunked]
1001 Vary: ['Accept-Encoding, Origin'] 1001 Vary: ['Accept-Encoding, Origin']
@@ -1003,10 +1003,10 @@ interactions:
1003 X-Download-Options: [noopen] 1003 X-Download-Options: [noopen]
1004 X-Frame-Options: [SAMEORIGIN] 1004 X-Frame-Options: [SAMEORIGIN]
1005 X-Permitted-Cross-Domain-Policies: [none] 1005 X-Permitted-Cross-Domain-Policies: [none]
1006 X-Request-Id: [0b29e266-dc73-4659-9f03-b2bac055d499] 1006 X-Request-Id: [cc2e30a4-4f36-45c1-b65a-695014ce8093]
1007 X-Runtime: ['0.295518'] 1007 X-Runtime: ['0.626772']
1008 X-XSS-Protection: [1; mode=block] 1008 X-XSS-Protection: [1; mode=block]
1009 content-length: ['2047'] 1009 content-length: ['2054']
1010 status: {code: 200, message: OK} 1010 status: {code: 200, message: OK}
1011- request: 1011- request:
1012 body: null 1012 body: null
@@ -1016,15 +1016,15 @@ interactions:
1016 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 1016 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
1017 Connection: [keep-alive] 1017 Connection: [keep-alive]
1018 Content-Length: ['0'] 1018 Content-Length: ['0']
1019 User-Agent: [python-requests/2.9.1] 1019 User-Agent: [python-requests/2.18.4]
1020 method: DELETE 1020 method: DELETE
1021 uri: http://localhost:3000/api/v1/statuses/100154006056668334 1021 uri: http://localhost:3000/api/v1/statuses/100369507414792882
1022 response: 1022 response:
1023 body: {string: '{}'} 1023 body: {string: '{}'}
1024 headers: 1024 headers:
1025 Cache-Control: ['max-age=0, private, must-revalidate'] 1025 Cache-Control: ['max-age=0, private, must-revalidate']
1026 Content-Type: [application/json; charset=utf-8] 1026 Content-Type: [application/json; charset=utf-8]
1027 ETag: [W/"8781ff947e5a28c85a2a037fedc85ba7"] 1027 ETag: [W/"494ec538a7a197675adbf27a5e0c5db9"]
1028 Referrer-Policy: [strict-origin-when-cross-origin] 1028 Referrer-Policy: [strict-origin-when-cross-origin]
1029 Transfer-Encoding: [chunked] 1029 Transfer-Encoding: [chunked]
1030 Vary: ['Accept-Encoding, Origin'] 1030 Vary: ['Accept-Encoding, Origin']
@@ -1032,8 +1032,8 @@ interactions:
1032 X-Download-Options: [noopen] 1032 X-Download-Options: [noopen]
1033 X-Frame-Options: [SAMEORIGIN] 1033 X-Frame-Options: [SAMEORIGIN]
1034 X-Permitted-Cross-Domain-Policies: [none] 1034 X-Permitted-Cross-Domain-Policies: [none]
1035 X-Request-Id: [4902ba13-92e2-48f0-88a2-f779e56361d2] 1035 X-Request-Id: [05a07200-7986-496e-b835-396d1b429eaa]
1036 X-Runtime: ['0.129599'] 1036 X-Runtime: ['0.060324']
1037 X-XSS-Protection: [1; mode=block] 1037 X-XSS-Protection: [1; mode=block]
1038 content-length: ['2'] 1038 content-length: ['2']
1039 status: {code: 200, message: OK} 1039 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)